package com.kingyea.mobilepolice.apimanage.accesscontrol.dao;

import com.kingyea.mobilepolice.apimanage.accesscontrol.bean.CustomController;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author chenjw
 * @version v1.0.0
 * @description CustomControllerMapper
 * @date Created in 2018-04-03 15:32:07
 */
@Repository
public interface CustomControllerMapper {

    /**
     * 通过ID获取对象
     */
    CustomController getById(@Param("id") Integer id);

    /**
     * 通过ID删除对象
     */
    void deleteById(@Param("id") Integer id);

    /**
     * 更新对象
     */
    void update(CustomController obj);

    /**
     * 保存对象
     */
    void save(CustomController obj);

    /**
     * 查询列表
     */
    List<CustomController> list(CustomController obj);

    List searchByCondition(Map<String, Object> map);

    CustomController getByParam(Map<String, Object> map);
}
